//商品相关接口
import axios from '../utils/utils'

//获取分类
export let catelist = params => axios.get('/goods/catelist', { params })

//添加分类
export let addcate = params => axios.post('/goods/addcate', params)

//删除分类
export let delcate = params => axios.get('/goods/delcate', { params })

//修改分类
export let editcate = params => axios.post('/goods/editcate', params)

//获取商品列表
export let prolist = params => axios.get('/goods/list', { params })

//删除商品
export let dellist = params => axios.get('/goods/del', { params })

//修改商品
export let editlist = params => axios.post('/goods/edit', params)

//所有分类名称
export let categories = params => axios.get('/goods/categories', { params })

//添加商品
export let addgoods = params => axios.post('/goods/add', params)




//获取订单列表(带查询功能)
export let orderlist = params => axios.get('/order/list', { params })

//获取订单详情(查看)
export let orderdetail = params => axios.get('/order/detail', { params })

//修改订单信息
export let orderedit = params => axios.post('/order/edit', params)



//店铺详情
export let shopinfo = params => axios.get('/shop/info', { params })

//修改店铺名字
export let shopnameedit = params => axios.post('/shop/edit', params)









